Date: Tue, 14 Jan 1997 23:00:21 GMT
Server: NCSA/1.5
Content-type: text/html

		<HTML>
		<HEAD><TITLE>
BU CLA CS 111: Intro CS I---Homework 2
		</TITLE></HEAD>

		<BODY>
		<H2>
		<!WA0><A href="http://web.bu.edu/pagetwo.html">
BU</A>
CLA
		<!WA1><A href="http://cs-pub.bu.edu/">
CS</A> 111:
		<!WA2><A href="http://www.cs.bu.edu/faculty/heddaya/CS111/home.html">
Intro CS I</A>---

		<!WA3><A href="http://www.cs.bu.edu/faculty/heddaya/home.html">
A. Heddaya</A>---
Fall 1994
		</H2>

		<H2>
Homework 2---due Tue 94.09.27
		</H2>

		<HR>

Unless otherwise noted, please submit a listing of each program you
write for this homework, and <EM>one</EM> script that shows that all
of your programs compile properly, and run as intended.<P>

Problems labelled as "Extra-credit/Honors" are required only of honors
   students, and are optional for everyone else.<P>

As usual, homeworks are due at the beginning of class.

		<OL>
		<LI>
The following program writes a large letter <CODE>I</CODE> on the
screen:
<PRE>
	#include &lt;stdio.h&gt;

	#define HEIGHT 17

	main()
	{
		int i = 0;
	
		printf("\n\nIIIIIII\n");
		while (i < HEIGHT)
		{
			printf("  III\n");
			i = i + 1;
		}
		printf("IIIIIII\n\n\n");
	}
</PRE>
		<OL>
		<LI>
   Type, compile, and run this program

		<LI>
   Describe in a sentence or two of your own words what the program
      does.

		<LI>
   Write a similar program that prints a large letter <CODE>C</CODE>
      on the screen.

		</OL>
<P>

		<LI>
<STRONG>(Extra-credit/Honors)</STRONG><BR>
Write a program that prints an <CODE>X</CODE> (the letter) that is 25
   lines high, using as few <CODE>printf</CODE> statements as you can.
<P>

		<LI>
[KP92, page 35, problem 4]<BR>
In this problem, you need only submit a hand-written list of the
   compilation errors generated as a result of <EM>each</EM> of the
   six modifications.
<P>

		<LI>
[KP92, page 39, problem 12]
<P>

		<LI>
<STRONG>(Extra-credit/Honors)</STRONG><BR>
[KP92, page 39, problem 13]
<P>

		</OL>
		<PRE><HR><EM><!WA4><A href="http://www.cs.bu.edu/faculty/heddaya/home.html">
Abdelsalam Heddaya</A><BR>
Created: 1994.09.19<BR>
Updated: 1994.09.26
		</EM></PRE>

		</BODY>
		</HTML>


